transform: Redo querying API
authorBenjamin Otte <otte@redhat.com>
Mon, 4 Mar 2019 18:33:04 +0000 (19:33 +0100)
committerBenjamin Otte <otte@redhat.com>
Mon, 4 Mar 2019 22:41:51 +0000 (23:41 +0100)
commitbd113aa85cd011edd11874c4e2d9353898d8f793
treefa7ce7392574036f2f59db79a6817d777e9dba20
parent1fecbd4241529197984ed1c717fdf91f0bb8337b
transform: Redo querying API

Make the API expect a tranform of the proper category instead of
doing the check ourselves and returning TRUE/FALSE.

The benefit is that the mai use case is switch (transform->category)
statements and in those we know the category and don't need to check
TRUE/FALSE.

Using the wrong matrix will now cause a g_warning().
gsk/gl/gskglrenderer.c
gsk/gskrendernodeimpl.c
gsk/gsktransform.c
gsk/gsktransform.h
gtk/gtksnapshot.c
gtk/gtkwidget.c
testsuite/gtk/transform.c